package com.xqc.test.service;

import com.xqc.annotation.XqcComponent;
import com.xqc.annotation.XqcPostConstruct;
import com.xqc.annotation.XqcScope;
import com.xqc.annotation.XqcValue;
import com.xqc.aware.XqcBeanAware;

@XqcComponent("userService")
@XqcScope
public class UserService implements XqcBeanAware {

    @XqcValue(value = "张三")
    private String name;

   public void test(){
        System.out.println("模拟spring test");

       System.out.println("XqcValue===>"+name);
    }

    @XqcPostConstruct
   public void say(){
        System.out.println("调用@XqcPostConstruct注解跑步");

       System.out.println("XqcValue===>"+name);
    }

    @Override
    public void setBeanName(String name) {
        System.out.println("XqcBeanAware===>当前对象的bean名称"+name);
    }
}
